\usepackage{algorithmic}
\usepackage{algorithm}

\begin{algorithm}[!h]
    \caption{Algorithm of SUM}
    \label{alg:AOS}
    \renewcommand{\algorithmicrequire}{\textbf{Input:}}
    \renewcommand{\algorithmicensure}{\textbf{Output:}}
    
    \begin{algorithmic}[1]
        \REQUIRE $A$, $B$, $C$(This is Inputs)  %%input
        \ENSURE XXX(This is Outputs)    %%output
        
        \STATE  xxxxx
        
        \WHILE{$A=B$}
            \STATE xxxxx
        \ENDWHILE
        
        \FOR{each $i \in [1,10]$}
            \IF {$C = 0$}
                \STATE xxxxx
            \ELSE
                \STATE xxxxx
            \ENDIF
        \ENDFOR
        
        \RETURN Outputs
    \end{algorithmic}
\end{algorithm}